pygrub: cope with configurations with submenus
authorMichael Young <m.a.young@durham.ac.uk>
Tue, 25 Oct 2011 18:20:06 +0000 (19:20 +0100)
committerMichael Young <m.a.young@durham.ac.uk>
Tue, 25 Oct 2011 18:20:06 +0000 (19:20 +0100)
commit0c385b2eff8ba3cfeec367d70a26e68e860fa4bb
treeda163f95da93317a915b678a674d74c33202b346
parent26543b12807d22d0198af636b97e56c12c3f04ad
pygrub: cope with configurations with submenus

The grub2 configuration file in Fedora 16 can have one or more
menuentrys in a submenu, with configuration of the form
    submenu "Xen 4.1" {
    menuentry ... {
    ...
    }
    }
(this example occurs when the xen hypervisor is installed on the
guest)

Ignore the submenu line and the corresponding }

Signed-off-by: Michael Young <m.a.young@durham.ac.uk>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/pygrub/src/GrubConf.py